module.exports = options =>{
    return async function adminauth(ctx,next){
        console.log(ctx.session.openId)
        if(ctx.session.openId){
            await next()
        }else{
            ctx.body = {
                resultCode:"0000",
                msg:"登录失效，请重新登录"
            }
        }
    }
}